<?php defined('SYSTEM_IN') or exit('Access Denied');?>
<?php include page('header_base');?>
<title>预约表</title>
<link href="<?php echo RESOURCE_ROOT;?>public/weui.min.css" rel="stylesheet">
<link href="<?php echo RESOURCE_ROOT;?>public/weui.plus.css?v=2" rel="stylesheet">
<div class="weui-cells_form" style="  margin-bottom:50px;   border-bottom: 0px solid #FFF;   margin-top: 0;">
     <div class="page_topbar" >
     <a href="<?php echo create_url('mobile',array('act' => 'center','do' => 'member','m'=>'eshop'));?>" class="back"  style="color: #fff;text-align:center;"><i class="fa fa-angle-left"></i></a>
    <div class="title" style="color: #fff;text-align:center;">预约列表</div>
</div>
<div class="weui-cells__title">预约申请</div>
<a href="<?php  echo create_url('mobile',array('act' => 'shopwap','do' => 'reservation'))?>" class="weui-btn weui-btn_primary">我要预约</a>
<div class="weui-cells__title">预约列表</div>
<?php  if(is_array($list)) { foreach($list as $key => $row) { ?>
<div class="weui-cells__title"><?php echo $row["reserve_time"]?></div>
<div class="weui-cells" style="margin-top:10px">

    <a class="weui-cell weui-cell_access" href="<?php  echo create_url('mobile',array('act' => 'shopwap','do' => 'check_reservation','id' => $row["id"] ))?>">
        <div class="weui-cell__bd">
            <p><div style="float:left;width:25px"><i class="fa fa-envelope" style="color:#000;"></i></div><?php echo $row["realname"];?>
            <?php 
            if($row["isread"] == 0)
                echo '
                <div style="float:right;width:48px;height:19px;background-color:#d9534f;color:#FFF;text-align:center;line-height:19px;margin:4px;border-radius:3px;font-size:12px;">未审阅</div>
                </p>';
            else
                echo '
                <div style="float:right;width:48px;height:19px;background-color:#428bca;color:#FFF;text-align:center;line-height:19px;margin:4px;border-radius:3px;font-size:12px;">已审阅</div>
                </p>';
            ?>
        </div>
        <div class="weui-cell__ft">
        </div>
    </a>
</div>
<?php } }?>

<?php  $show_footer=true;?>
<?php include page('footer_menu');?>
<?php include page('footer_base');?>